package org.penguin.study.bk.eventbus.subscried;

import lombok.extern.slf4j.Slf4j;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.penguin.study.bk.eventbus.event.OrderEvent;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OrderListener {

    @Subscribe(threadMode = ThreadMode.ASYNC)
    public void handleOrder(OrderEvent orderEvent) {
        log.debug("EventBus订阅: {}, ", orderEvent);
    }
}
